//
//  QNIDPadView.h
//  CreditCat
//
//  Created by rsh on 20120/8/27.
//  Copyright © 2020年 rsh. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "QNKeybordEnumFile.h"

@class QNIDPadView;

@protocol QNIDPadViewDelegate <NSObject>

//内部已经处理完毕,除非你有特殊需求否则不建议实现
@optional
- (void)fyIDKeybordView:(QNIDPadView *)idKeybordView clickIDNumberStr:(NSString *)clickIDNumberStr;
- (void)clickDeleteButtonWithQNIDKeybordView:(QNIDPadView *)idKeybordView;

@end

// MARK: 身份证键盘
@interface QNIDPadView : UIView

@property (weak, nonatomic) id<QNIDPadViewDelegate>fyIDKeybordDelegate;

- (instancetype)initWithTargetTextField:(UITextField *)targetTextField;

// MARK: 展现键盘(需要手动展现)
-(void)show;

// MARK: 消失键盘
-(void)dimiss;

// MARK: 只能输入多少位（不实现该方法，默认不限制）
-(void)inputTextCount:(NSInteger)count;

@end
